#ifndef _CHART_MAINWINDOW_H_
#define _CHART_MAINWINDOW_H_

#include <QMainWindow>
#include <QAbstractItemView>
#include <QItemSelectionModel>

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow();

private slots:
    void openFile(const QString &path = QString());
    void saveFile();

private:
    void setupViews();
    void setupModels();

    QAbstractItemModel *m_model;
    QAbstractItemView *m_pieChart;
    QItemSelectionModel *m_selectionModel;
};
#endif

